<?php
/* @var $this CompanyController */
/* @var $data Company */
?>

	<tr>
		<td class="pl15">
			<?php echo CHtml::checkBox('id[]','',array('class'=>'chk','onclick'=>'CheckList("ids[]","id[]")','value'=>$data->zm_id))?>
			<?php if(!empty($data->member)) echo CHtml::encode($data->member->zm_name)?>
		</td>
		<td width="18%"><?php echo CompanyCard::model()->getZoaType($data->zoa_type)?></td>
		<td width="15%"><?php echo $data->category->zca_title?></td>
		<td width="15%"><?php echo date('Y-m-d H:i',$data->inputtime)?></td>
		<td width="15%">
			<?php if($data->zoa_check==1){?>
				<span class="c_green3">资料审核</span>
			<?php }elseif($data->zoa_check==2){ ?>
				<?php if($data->zoa_accept==1){?>
					<span class="c_green3">待用户签协议</span>
				<?php }elseif($data->zoa_accept==2){?>
					<?php if($data->zoa_deposit_status==1){?>
						<span class="c_green3">待缴纳保障金</span>
					<?php }elseif($data->zoa_deposit_status==2){?>
						<?php if($data->zoa_deposit_check==1){?>
							<span class="c_green3">待保障金审核</span>
						<?php }elseif($data->zoa_deposit_check==2){?>
							<span class="c_green3">开店成功</span>
						<?php }?>
					<?php }?>
				<?php }?>
			<?php }elseif($data->zoa_check==3){ ?>
				<span class="c_red">审核不通过</span>
			<?php }?>
		</td> 
		<td class="operate" width="17%">
			<?php if($data->zoa_check==1){?>
				<?php echo CHtml::link(Yii::t('adm','Check Status'),array('checkStatus','id'=>$data->zm_id),array('class'=>'c_06c'))?>
			<?php }elseif($data->zoa_check==2&&$data->zoa_deposit_status==2&&$data->zoa_deposit_check==1){ ?>
				<?php echo CHtml::link(Yii::t('adm','Check Status'),array('CheckDeposit','id'=>$data->zm_id),array('class'=>'c_06c'))?>
			<?php } ?>
			<?php if(!($data->zoa_deposit_check==2)) echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/manage/companyCard/delete/id/'.$data->zm_id.'","你确定要删除这条消息吗？")'))  ?>
			<?php if($data->zoa_check==2) echo CHtml::link('查看资料',array('checkStatus','id'=>$data->zm_id),array('class'=>'c_06c'))?>
			<?php if($data->zoa_accept==2&&$data->zoa_deposit_status==1) echo CHtml::link('代缴',array('submitDeposit','id'=>$data->zm_id),array('class'=>'c_06c'))?>
			<?php //if($data->zoa_deposit_check==2) echo CHtml::link('查看保障金',array('CheckDeposit','id'=>$data->zm_id),array('class'=>'c_06c'))?>
		</td>
	</tr>
